﻿using System;
using System.Collections.Generic;
using System.Linq;
using Flux.Data.Maps;
using Flux.Data.Tilesets;

namespace Flux.Data
{
	public class Project
	{
		public Guid Id { get; set; }
		public string Name { get; set; }
		public int TileWidth { get; set; }
		public int TileHeight { get; set; }
		public List<Map> Maps { get; set; } 
		public List<Tileset> Tilesets { get; set; } 

		public Project()
		{
			Id = Guid.NewGuid();
			Maps = new List<Map>();
			Tilesets = new List<Tileset>();
		}

		public Tileset GetTileset(Guid id)
		{
			return Tilesets.FirstOrDefault(tileset => tileset.Id == id);
		}
	}
}